import 'package:flutter/material.dart';


class Util {
  static String getImgPath(String name, {String format: 'png'}) {
    return 'assets/images/$name.$format';
  }

  static bool isEmpty(String name) {
    return name == '';
  }

  static void showSnackBar(BuildContext context, String msg) {
    Scaffold.of(context).showSnackBar(
      SnackBar(content: Text("$msg")),
    );
  }

  static bool isLogin() {
//    return ObjectUtil.isNotEmpty(SpUtil.getString(Constant.keyAppToken));
  }

}